package com.taxi.entity.common;

/**
 * @Author Dell
 * @Date 2019/11/20 15:02
 */
public enum ResultEnum {

    SUCCESS(0, "处理成功"),

    FAIL(1, "处理失败，未知异常"),

    PARAMS_ERROR(2, "缺少必要参数"),

    PWD_ERROR(3,"账号或密码错误"),

    NO_ADMIN_ERROR(4,"用户名为空"),
    NOT_FOUND(5, "资源不存在"),

    SIMPLE_CALL_SEND_FAILED(6, "发单失败"),
    SIMPLE_CALL_BACKLOG_DONE(7, "此呼叫信息已被处理"),
    DONT_AUTHORIZATION(8, "不需要授权"),
    NO_CUSTOMER_ACTICITY(4001,"无乘客优惠活动"),
    CAPPING_MONEY(4002,"已达封顶金额无法再发放优惠券")

            ;

    private int code;

    private String message;

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    ResultEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

}
